package cn.edu.lingnan.before.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
/* javaBean 规范的标准
        实现序列化接口
        有私有属性
        Get和Set方法
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("tb_user")
public class User implements Serializable {
    @TableId( value = "user_id",type = IdType.AUTO)
    private Integer userId;
    private String userEmail;
    private String password;
    private String tel;
    private String createUser;
    private String modifyUser;
    private Date createTime;
    private Date modifyTime;
    private String salt;
    private Integer isDelete; //0表示已被删除 1未被删除
}
